package net;

public class OlivawPortsClient {
	private static Integer input = 8765;
	private static Integer output = 5678;
	
	public static int getInputPort(){
		synchronized (input) {
			return input;
		}
	}
	
	public static int getOutputPort(){
		synchronized (output) {
			return output;
		}
	}
	
	public static void setInputPort(int input){
		synchronized (OlivawPortsClient.input) {
			OlivawPortsClient.input = input;
		}
	}
	
	public static void setOutputPort(int output){
		synchronized (OlivawPortsClient.output) {
			OlivawPortsClient.output = output;
		}
	}
	
}
